package com.yueyang.sojourn.server.service.share;

import com.yueyang.sojourn.server.model.po.Share;

import java.util.List;

import com.yueyang.sojourn.server.model.po.SojournOrder;
import com.yueyang.sojourn.server.model.vo.ShareVo;
import org.apache.ibatis.annotations.Param;

public interface ShareMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Share record);

    int insertSelective(Share record);

    Share selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Share record);

    int updateByPrimaryKey(Share record);

    Share findByUserIdAndMerchId(@Param("userId") Long userId, @Param("merchId") Long merchId);

    List<ShareVo> findUserShareList(@Param("userId") Long userId);

    void visitIncrease(Long id);

    void registIncrease(Long id);

    void orderIncrease(Long id);

    void dealIncrease(Long id);

}